/**
 * 
 *//*
package com.cipe.cmrs.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cipe.cmrs.model.Paymentrequesttype;
import com.cipe.cmrs.model.User;
import com.cipe.cmrs.util.DateUtil;

*//**
 * @author Incepio
 * 
 *//*
@Service
@Transactional
public class PaymentrequesttypeService extends BaseService<Paymentrequesttype> {

	@Autowired
	private UserService	userService;

	public Paymentrequesttype savePaymentrequesttype(Paymentrequesttype paymentrequesttype, Integer userId) {
		if (paymentrequesttype != null) {
			User user = userService.findById(userId);
			Paymentrequesttype dbPaymentrequesttype = findById(paymentrequesttype.getId());
			if (dbPaymentrequesttype == null) {
				dbPaymentrequesttype = new Paymentrequesttype();
				dbPaymentrequesttype.setCreatedBy(user);
				dbPaymentrequesttype.setCreationDate(DateUtil.getCurrentDate());
			}
			dbPaymentrequesttype.setDisplayName(paymentrequesttype.getDisplayName());
			dbPaymentrequesttype.setDescription(paymentrequesttype.getDescription());
			dbPaymentrequesttype.setUpdatedBy(user);
			dbPaymentrequesttype.setUpdationDate(DateUtil.getCurrentDate());
			return merge(dbPaymentrequesttype);
		}
		return null;
	}
}
*/